﻿namespace User.Api.BizExtensions
{
    public static class DoctorExtensions
    {
        /// <summary>
        /// 性别转化，F -> 女， M-> 男
        /// </summary>
        /// <param name="sex"></param>
        /// <returns></returns>
        public static string ToZhSex(string sex)
        {
            if (string.IsNullOrEmpty(sex))
            {
                return "";
            }
            if (sex.ToUpper() == "F")
            {
                return "女";
            }
            if (sex.ToUpper() == "M")
            {
                return "男";
            }

            return "";
        }
    }
}